package com.lin.reggie.mapper;

import com.lin.reggie.entity.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {

    //登录查询
    Employee login(Employee employee);

    //根据员工姓名查询员工列表，也利用了插件自动生成分页查询和单页总数
    List<Employee>findByName(@Param("name") String name);

    //添加员工
    Integer save(Employee employee);

    //禁用启用按钮
    Integer update(Employee employee);

    Employee findById(Long id);

    Employee fingByUserName(String username);


}
